package com.zyong.design.pattern.decorator.case2;

/**
 * @program: zyong-design-pattern
 * @ClassName: FastFood
 * @author: zyong
 * @create: 2024-04-28 00:19
 */
public abstract class FastFood {
    private float price;
    private String desc;

    public FastFood() {
    }

    public FastFood(float price, String desc) {
        this.price = price;
        this.desc = desc;
    }

    /**
     * 计算费用
     * @return
     */
    public abstract float cost();

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
